package org.catlabs.patterns.decorator.starbuz.condiment;

import org.catlabs.patterns.decorator.starbuz.Beverage;

public class Mocha extends CondimentDecorator {

	public Mocha(Beverage beverage){
		this.beverage = beverage; // there's no mocha without a beverage
	}
	
	/**
	 * Beverage description + condiment name
	 */
	@Override
	public String getDescription() {
		return beverage.getDescription() + ", Mocha";
	}

	/**
	 * Beverage cost + condiment name
	 */
	@Override
	public double cost() {
		return beverage.cost() + .20; // mocha costs 20 cents
	}

}
